<!DOCTYPE html>
<html>
<head>
<title>SDK管理</title>
<#include "/header.html">
<!--	<link rel="stylesheet" href="${request.contextPath}/statics/plugins/layui/css/layui.css">-->
<!--	<script src="${request.contextPath}/statics/plugins/layui/layui.js"></script>-->
</head>
<body>
<div id="webpage">
	<div class="panel panel-default">
		<div class="panel-heading">直播SDK设置</div>
		<form class="form-horizontal" style="padding: 10px 20px">
			<div vclass="form-group">
				<label>secretId</label>
				<input type="text" class="form-control" v-model="secretId">
			</div>
			<div vclass="form-group">
				<label>secretKey</label>
				<input type="text" class="form-control" v-model="secretKey">
			</div>
			<div class="form-group">
				<div style="padding: 5px;"><b>选择当前ＳＤＫ环境</b></div>
				<label v-for="(value,key) in envArray" class="radio-inline">
					<input type="radio" :id="value" v-model="active" :value="value"> {{value}}
				</label>
			</div>
			<div v-bind:type="item.key" v-show="active == item.key" v-for="(item,name) in list">
				<div v-if="name!='TemplateId'" class="form-group" v-for="(value,name) in item.value">
					<label>{{name}}</label>
					<input type="text" class="form-control" v-model="item.value[name]">
				</div>
			</div>

			<button type="button" class="btn btn-default" @click="save()">保存</button>
		</form>
	</div>
</div>
<script src="${request.contextPath}/statics/js/modules/sdk/zhibo.js?_${.now?long}"></script>
</body>
</html>